//
//  RegisterViewController.swift
//  约健
//
//  Created by tyh on 2017/9/26.
//  Copyright © 2017年 tyh. All rights reserved.
//

import UIKit

class RegisterViewController: UIViewController {

    @IBOutlet weak var tele: UITextField!
    @IBOutlet weak var password: UITextField!
    @IBAction func Register(_ sender: UIButton) {
        let parameters:NSDictionary = ["tel": tele.text!, "password": password.text!]
        print(parameters)
        NetWorkMngTool.sharedNetworkMngtool().RONetwork_Register(parameters, view: self.view, block: {
            (flag) in if flag == "1"
            {
                
                self.navigationController?.popViewController(animated: true)
                
                print("注册成功")}
            else{
               
                print("注册失败")
            }
        })
   
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
